<?php

namespace html;

use Classes\autoload\SplClassLoader;
use Classes\Event;
use PDO;
use Classes;

class EventView {
	public static function showEvent ($event_id) {
		$event = Classes\Event::getEvent ( $_GET ['event'] );
		$event = $event [0];
		
		echo '<div class="event-div" id="event-div-' . $event_id . '">';
		
		echo '<h3>' . $event ['event_name'] . '</h3>';
		
		echo '<p>Организирано от ' . $event['user_name'] . '</p>';
		echo '<p>Кратко описание: ' . $event['description'] . '</p>';
		echo '<p>Ще се състои на ' . $event['date'] . '</p>';
		echo '<p>Място: ' . $event['place'] . '</p>';
		
		echo '</div>';
	}
}
